package cn.darkhorse.device.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author yuanjun
 * @since 2023-10-11
 */
@Getter
@Setter
  @TableName("iot_point_table")
@ApiModel(value = "IotPointTable对象", description = "")
public class IotPointTable implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("变量标识")
      @Excel(name = "变量标识")
      private String pointId;

      @ApiModelProperty("对应历史表的字段名，如果不设置，默认和point_id相同")
      @Excel(name = "属性标识")
      private String fieldName;

      @ApiModelProperty("属性名称")
      @Excel(name = "属性名")
      private String pointName;

      @ApiModelProperty("mes设备id")
      private Long deviceId;

      @ApiModelProperty("类型")
      private String pointType;

      @ApiModelProperty("设备硬件对应id")
      private String gatewayDeviceId;

      @ApiModelProperty("数据类型（0：布尔型1：数值型2：字符型3：枚举型4：二进制")
      @Excel(name = "类型",readConverterExp = "0=布尔型,1=数值型,2=字符型,3=枚举型,4=二进制")
      private Integer dataType;

      @ApiModelProperty("说明")
      @Excel(name = "说明")
      private String description;

      @ApiModelProperty("输入类型")
      private Integer inputType;

      @ApiModelProperty("计算公式")
      private String dataFormula;

      @ApiModelProperty("附加信息")
      private String extraJson;

      @ApiModelProperty("小数位")
      private Integer scale;

}
